﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.Klijent"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class KlijentEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// TextBox for the ImeKlijenta property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxImeKlijenta;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ImeKlijenta property.
		/// </summary>
		protected System.Windows.Forms.Label uxImeKlijentaLabel;
		
		/// <summary>
		/// TextBox for the MB property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMB;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MB property.
		/// </summary>
		protected System.Windows.Forms.Label uxMBLabel;
		
		/// <summary>
		/// TextBox for the Adresa property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxAdresa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Adresa property.
		/// </summary>
		protected System.Windows.Forms.Label uxAdresaLabel;
		
		/// <summary>
		/// ComboBox for the IDMjesto property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDMjesto;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDMjesto property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDMjestoLabel;
		
		/// <summary>
		/// TextBox for the Telefon property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxTelefon;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Telefon property.
		/// </summary>
		protected System.Windows.Forms.Label uxTelefonLabel;
		
		/// <summary>
		/// TextBox for the Telefon2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxTelefon2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Telefon2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxTelefon2Label;
		
		/// <summary>
		/// TextBox for the Fax property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFax;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Fax property.
		/// </summary>
		protected System.Windows.Forms.Label uxFaxLabel;
		
		/// <summary>
		/// TextBox for the Fax2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFax2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Fax2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxFax2Label;
		
		/// <summary>
		/// TextBox for the WebAdresa property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxWebAdresa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the WebAdresa property.
		/// </summary>
		protected System.Windows.Forms.Label uxWebAdresaLabel;
		
		/// <summary>
		/// TextBox for the ZiroRacun property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxZiroRacun;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ZiroRacun property.
		/// </summary>
		protected System.Windows.Forms.Label uxZiroRacunLabel;
		
		/// <summary>
		/// TextBox for the ZiroRacun2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxZiroRacun2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ZiroRacun2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxZiroRacun2Label;
		
		/// <summary>
		/// TextBox for the ZiroRacun3 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxZiroRacun3;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ZiroRacun3 property.
		/// </summary>
		protected System.Windows.Forms.Label uxZiroRacun3Label;
		
		/// <summary>
		/// TextBox for the Napomena1 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNapomena1;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Napomena1 property.
		/// </summary>
		protected System.Windows.Forms.Label uxNapomena1Label;
		
		/// <summary>
		/// TextBox for the Napomena2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNapomena2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Napomena2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxNapomena2Label;
		
		/// <summary>
		/// ComboBox for the IDTip property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDTip;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDTip property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDTipLabel;
		
		/// <summary>
		/// TextBox for the OIB property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOIB;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OIB property.
		/// </summary>
		protected System.Windows.Forms.Label uxOIBLabel;
		
		/// <summary>
		/// TextBox for the GarancijaPlacanjaOpis property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxGarancijaPlacanjaOpis;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the GarancijaPlacanjaOpis property.
		/// </summary>
		protected System.Windows.Forms.Label uxGarancijaPlacanjaOpisLabel;
		
		/// <summary>
		/// TextBox for the GarancijaPlacanjaVrijednost property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxGarancijaPlacanjaVrijednost;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the GarancijaPlacanjaVrijednost property.
		/// </summary>
		protected System.Windows.Forms.Label uxGarancijaPlacanjaVrijednostLabel;
		
		/// <summary>
		/// TextBox for the DaniOdgodePlacanja property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDaniOdgodePlacanja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DaniOdgodePlacanja property.
		/// </summary>
		protected System.Windows.Forms.Label uxDaniOdgodePlacanjaLabel;
		
		/// <summary>
		/// TextBox for the Komentar property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKomentar;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Komentar property.
		/// </summary>
		protected System.Windows.Forms.Label uxKomentarLabel;
		#endregion
		
		#region Main entity
		private Entities.Klijent _Klijent;
		/// <summary>
		/// Gets or sets the <see cref="Entities.Klijent"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.Klijent"/> instance.</value>
		public Entities.Klijent Klijent
		{
			get {return this._Klijent;}
			set
			{
				this._Klijent = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxImeKlijenta.DataBindings.Clear();
			this.uxImeKlijenta.DataBindings.Add("Text", this.uxBindingSource, "ImeKlijenta", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMB.DataBindings.Clear();
			this.uxMB.DataBindings.Add("Text", this.uxBindingSource, "MB", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxAdresa.DataBindings.Clear();
			this.uxAdresa.DataBindings.Add("Text", this.uxBindingSource, "Adresa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDMjesto.DataBindings.Clear();
			this.uxIDMjesto.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDMjesto", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTelefon.DataBindings.Clear();
			this.uxTelefon.DataBindings.Add("Text", this.uxBindingSource, "Telefon", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTelefon2.DataBindings.Clear();
			this.uxTelefon2.DataBindings.Add("Text", this.uxBindingSource, "Telefon2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFax.DataBindings.Clear();
			this.uxFax.DataBindings.Add("Text", this.uxBindingSource, "Fax", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFax2.DataBindings.Clear();
			this.uxFax2.DataBindings.Add("Text", this.uxBindingSource, "Fax2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxWebAdresa.DataBindings.Clear();
			this.uxWebAdresa.DataBindings.Add("Text", this.uxBindingSource, "WebAdresa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxZiroRacun.DataBindings.Clear();
			this.uxZiroRacun.DataBindings.Add("Text", this.uxBindingSource, "ZiroRacun", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxZiroRacun2.DataBindings.Clear();
			this.uxZiroRacun2.DataBindings.Add("Text", this.uxBindingSource, "ZiroRacun2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxZiroRacun3.DataBindings.Clear();
			this.uxZiroRacun3.DataBindings.Add("Text", this.uxBindingSource, "ZiroRacun3", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNapomena1.DataBindings.Clear();
			this.uxNapomena1.DataBindings.Add("Text", this.uxBindingSource, "Napomena1", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNapomena2.DataBindings.Clear();
			this.uxNapomena2.DataBindings.Add("Text", this.uxBindingSource, "Napomena2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDTip.DataBindings.Clear();
			this.uxIDTip.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDTip", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOIB.DataBindings.Clear();
			this.uxOIB.DataBindings.Add("Text", this.uxBindingSource, "OIB", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxGarancijaPlacanjaOpis.DataBindings.Clear();
			this.uxGarancijaPlacanjaOpis.DataBindings.Add("Text", this.uxBindingSource, "GarancijaPlacanjaOpis", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxGarancijaPlacanjaVrijednost.DataBindings.Clear();
			this.uxGarancijaPlacanjaVrijednost.DataBindings.Add("Text", this.uxBindingSource, "GarancijaPlacanjaVrijednost", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDaniOdgodePlacanja.DataBindings.Clear();
			this.uxDaniOdgodePlacanja.DataBindings.Add("Text", this.uxBindingSource, "DaniOdgodePlacanja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKomentar.DataBindings.Clear();
			this.uxKomentar.DataBindings.Add("Text", this.uxBindingSource, "Komentar", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="KlijentEditControlBase"/> class.
		/// </summary>
		public KlijentEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_Klijent != null) _Klijent.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxImeKlijenta = new System.Windows.Forms.TextBox();
			uxImeKlijentaLabel = new System.Windows.Forms.Label();
			this.uxMB = new System.Windows.Forms.TextBox();
			uxMBLabel = new System.Windows.Forms.Label();
			this.uxAdresa = new System.Windows.Forms.TextBox();
			uxAdresaLabel = new System.Windows.Forms.Label();
			this.uxIDMjesto = new System.Windows.Forms.ComboBox();
			uxIDMjestoLabel = new System.Windows.Forms.Label();
			this.uxTelefon = new System.Windows.Forms.TextBox();
			uxTelefonLabel = new System.Windows.Forms.Label();
			this.uxTelefon2 = new System.Windows.Forms.TextBox();
			uxTelefon2Label = new System.Windows.Forms.Label();
			this.uxFax = new System.Windows.Forms.TextBox();
			uxFaxLabel = new System.Windows.Forms.Label();
			this.uxFax2 = new System.Windows.Forms.TextBox();
			uxFax2Label = new System.Windows.Forms.Label();
			this.uxWebAdresa = new System.Windows.Forms.TextBox();
			uxWebAdresaLabel = new System.Windows.Forms.Label();
			this.uxZiroRacun = new System.Windows.Forms.TextBox();
			uxZiroRacunLabel = new System.Windows.Forms.Label();
			this.uxZiroRacun2 = new System.Windows.Forms.TextBox();
			uxZiroRacun2Label = new System.Windows.Forms.Label();
			this.uxZiroRacun3 = new System.Windows.Forms.TextBox();
			uxZiroRacun3Label = new System.Windows.Forms.Label();
			this.uxNapomena1 = new System.Windows.Forms.TextBox();
			uxNapomena1Label = new System.Windows.Forms.Label();
			this.uxNapomena2 = new System.Windows.Forms.TextBox();
			uxNapomena2Label = new System.Windows.Forms.Label();
			this.uxIDTip = new System.Windows.Forms.ComboBox();
			uxIDTipLabel = new System.Windows.Forms.Label();
			this.uxOIB = new System.Windows.Forms.TextBox();
			uxOIBLabel = new System.Windows.Forms.Label();
			this.uxGarancijaPlacanjaOpis = new System.Windows.Forms.TextBox();
			uxGarancijaPlacanjaOpisLabel = new System.Windows.Forms.Label();
			this.uxGarancijaPlacanjaVrijednost = new System.Windows.Forms.TextBox();
			uxGarancijaPlacanjaVrijednostLabel = new System.Windows.Forms.Label();
			this.uxDaniOdgodePlacanja = new System.Windows.Forms.TextBox();
			uxDaniOdgodePlacanjaLabel = new System.Windows.Forms.Label();
			this.uxKomentar = new System.Windows.Forms.TextBox();
			uxKomentarLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxImeKlijentaLabel
			//
			this.uxImeKlijentaLabel.Text = "ImeKlijenta:";
			this.uxImeKlijentaLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxImeKlijentaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeKlijentaLabel);			
			//
			// uxImeKlijenta
			//
			this.uxImeKlijenta.Width = 250;
			this.uxImeKlijenta.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeKlijenta);
			this.uxImeKlijenta.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxImeKlijenta);
			//
			// uxMBLabel
			//
			this.uxMBLabel.Text = "MB:";
			this.uxMBLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxMBLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMBLabel);			
			//
			// uxMB
			//
			this.uxMB.Width = 250;
			this.uxMB.MaxLength = 15;
			//this.uxTableLayoutPanel.Controls.Add(this.uxMB);
			this.uxMB.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxMB);
			//
			// uxAdresaLabel
			//
			this.uxAdresaLabel.Text = "Adresa:";
			this.uxAdresaLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxAdresaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxAdresaLabel);			
			//
			// uxAdresa
			//
			this.uxAdresa.Width = 250;
			this.uxAdresa.MaxLength = 300;
			//this.uxTableLayoutPanel.Controls.Add(this.uxAdresa);
			this.uxAdresa.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxAdresa);
			//
			// uxIDMjestoLabel
			//
			this.uxIDMjestoLabel.Text = "IDMjesto:";
			this.uxIDMjestoLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxIDMjestoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDMjestoLabel);			
			//
			// uxIDMjesto
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDMjesto);
			this.uxIDMjesto.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxIDMjesto);
			//
			// uxTelefonLabel
			//
			this.uxTelefonLabel.Text = "Telefon:";
			this.uxTelefonLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxTelefonLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTelefonLabel);			
			//
			// uxTelefon
			//
			this.uxTelefon.Width = 250;
			this.uxTelefon.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxTelefon);
			this.uxTelefon.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxTelefon);
			//
			// uxTelefon2Label
			//
			this.uxTelefon2Label.Text = "Telefon2:";
			this.uxTelefon2Label.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxTelefon2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTelefon2Label);			
			//
			// uxTelefon2
			//
			this.uxTelefon2.Width = 250;
			this.uxTelefon2.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxTelefon2);
			this.uxTelefon2.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxTelefon2);
			//
			// uxFaxLabel
			//
			this.uxFaxLabel.Text = "Fax:";
			this.uxFaxLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxFaxLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFaxLabel);			
			//
			// uxFax
			//
			this.uxFax.Width = 250;
			this.uxFax.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxFax);
			this.uxFax.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxFax);
			//
			// uxFax2Label
			//
			this.uxFax2Label.Text = "Fax2:";
			this.uxFax2Label.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxFax2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFax2Label);			
			//
			// uxFax2
			//
			this.uxFax2.Width = 250;
			this.uxFax2.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxFax2);
			this.uxFax2.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxFax2);
			//
			// uxWebAdresaLabel
			//
			this.uxWebAdresaLabel.Text = "WebAdresa:";
			this.uxWebAdresaLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxWebAdresaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxWebAdresaLabel);			
			//
			// uxWebAdresa
			//
			this.uxWebAdresa.Width = 250;
			this.uxWebAdresa.MaxLength = 300;
			//this.uxTableLayoutPanel.Controls.Add(this.uxWebAdresa);
			this.uxWebAdresa.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxWebAdresa);
			//
			// uxZiroRacunLabel
			//
			this.uxZiroRacunLabel.Text = "ZiroRacun:";
			this.uxZiroRacunLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxZiroRacunLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxZiroRacunLabel);			
			//
			// uxZiroRacun
			//
			this.uxZiroRacun.Width = 250;
			this.uxZiroRacun.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxZiroRacun);
			this.uxZiroRacun.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxZiroRacun);
			//
			// uxZiroRacun2Label
			//
			this.uxZiroRacun2Label.Text = "ZiroRacun2:";
			this.uxZiroRacun2Label.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxZiroRacun2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxZiroRacun2Label);			
			//
			// uxZiroRacun2
			//
			this.uxZiroRacun2.Width = 250;
			this.uxZiroRacun2.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxZiroRacun2);
			this.uxZiroRacun2.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxZiroRacun2);
			//
			// uxZiroRacun3Label
			//
			this.uxZiroRacun3Label.Text = "ZiroRacun3:";
			this.uxZiroRacun3Label.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxZiroRacun3Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxZiroRacun3Label);			
			//
			// uxZiroRacun3
			//
			this.uxZiroRacun3.Width = 250;
			this.uxZiroRacun3.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxZiroRacun3);
			this.uxZiroRacun3.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxZiroRacun3);
			//
			// uxNapomena1Label
			//
			this.uxNapomena1Label.Text = "Napomena1:";
			this.uxNapomena1Label.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxNapomena1Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena1Label);			
			//
			// uxNapomena1
			//
			this.uxNapomena1.Width = 250;
			this.uxNapomena1.MaxLength = 250;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena1);
			this.uxNapomena1.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxNapomena1);
			//
			// uxNapomena2Label
			//
			this.uxNapomena2Label.Text = "Napomena2:";
			this.uxNapomena2Label.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxNapomena2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena2Label);			
			//
			// uxNapomena2
			//
			this.uxNapomena2.Width = 250;
			this.uxNapomena2.MaxLength = 250;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena2);
			this.uxNapomena2.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxNapomena2);
			//
			// uxIDTipLabel
			//
			this.uxIDTipLabel.Text = "IDTip:";
			this.uxIDTipLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxIDTipLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTipLabel);			
			//
			// uxIDTip
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTip);
			this.uxIDTip.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxIDTip);
			//
			// uxOIBLabel
			//
			this.uxOIBLabel.Text = "OIB:";
			this.uxOIBLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxOIBLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOIBLabel);			
			//
			// uxOIB
			//
			this.uxOIB.Width = 250;
			this.uxOIB.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOIB);
			this.uxOIB.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxOIB);
			//
			// uxGarancijaPlacanjaOpisLabel
			//
			this.uxGarancijaPlacanjaOpisLabel.Text = "GarancijaPlacanjaOpis:";
			this.uxGarancijaPlacanjaOpisLabel.Location = new System.Drawing.Point(3, 442);
			this.Controls.Add(this.uxGarancijaPlacanjaOpisLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxGarancijaPlacanjaOpisLabel);			
			//
			// uxGarancijaPlacanjaOpis
			//
			this.uxGarancijaPlacanjaOpis.Width = 250;
			this.uxGarancijaPlacanjaOpis.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxGarancijaPlacanjaOpis);
			this.uxGarancijaPlacanjaOpis.Location = new System.Drawing.Point(160, 442);
			this.Controls.Add(this.uxGarancijaPlacanjaOpis);
			//
			// uxGarancijaPlacanjaVrijednostLabel
			//
			this.uxGarancijaPlacanjaVrijednostLabel.Text = "GarancijaPlacanjaVrijednost:";
			this.uxGarancijaPlacanjaVrijednostLabel.Location = new System.Drawing.Point(3, 468);
			this.Controls.Add(this.uxGarancijaPlacanjaVrijednostLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxGarancijaPlacanjaVrijednostLabel);			
			//
			// uxGarancijaPlacanjaVrijednost
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxGarancijaPlacanjaVrijednost);
			this.uxGarancijaPlacanjaVrijednost.Location = new System.Drawing.Point(160, 468);
			this.Controls.Add(this.uxGarancijaPlacanjaVrijednost);
			//
			// uxDaniOdgodePlacanjaLabel
			//
			this.uxDaniOdgodePlacanjaLabel.Text = "DaniOdgodePlacanja:";
			this.uxDaniOdgodePlacanjaLabel.Location = new System.Drawing.Point(3, 494);
			this.Controls.Add(this.uxDaniOdgodePlacanjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDaniOdgodePlacanjaLabel);			
			//
			// uxDaniOdgodePlacanja
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDaniOdgodePlacanja);
			this.uxDaniOdgodePlacanja.Location = new System.Drawing.Point(160, 494);
			this.Controls.Add(this.uxDaniOdgodePlacanja);
			//
			// uxKomentarLabel
			//
			this.uxKomentarLabel.Text = "Komentar:";
			this.uxKomentarLabel.Location = new System.Drawing.Point(3, 520);
			this.Controls.Add(this.uxKomentarLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKomentarLabel);			
			//
			// uxKomentar
			//
			this.uxKomentar.Width = 250;
			this.uxKomentar.MaxLength = 80;
			//this.uxTableLayoutPanel.Controls.Add(this.uxKomentar);
			this.uxKomentar.Location = new System.Drawing.Point(160, 520);
			this.Controls.Add(this.uxKomentar);
			//
			// uxIDTip
			//				
			this.uxIDTip.DisplayMember = "Naziv";	
			this.uxIDTip.ValueMember = "ID";	
			//
			// uxIDMjesto
			//				
			this.uxIDMjesto.DisplayMember = "Naziv";	
			this.uxIDMjesto.ValueMember = "ID";	
			// 
			// KlijentEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "KlijentEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.KlijentTip> _IDTipList;
		
		/// <summary>
		/// The ComboBox associated with the IDTip property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.KlijentTip> IDTipList
		{
			get {return _IDTipList;}
			set 
			{
				this._IDTipList = value;
				this.uxIDTip.DataSource = null;
				this.uxIDTip.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDTipList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDTip property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDTipList
		{
			get { return _allowNewItemInIDTipList;}
			set
			{
				this._allowNewItemInIDTipList = value;
				this.uxIDTip.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Mjesto> _IDMjestoList;
		
		/// <summary>
		/// The ComboBox associated with the IDMjesto property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Mjesto> IDMjestoList
		{
			get {return _IDMjestoList;}
			set 
			{
				this._IDMjestoList = value;
				this.uxIDMjesto.DataSource = null;
				this.uxIDMjesto.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDMjestoList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDMjesto property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDMjestoList
		{
			get { return _allowNewItemInIDMjestoList;}
			set
			{
				this._allowNewItemInIDMjestoList = value;
				this.uxIDMjesto.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
